<!--
/*
 * SPDX-License-Identifier: GPL-3.0-or-later
 * Copyright 2014 The moOde audio player project / Tim Curtis
 *
 * 汉化：Androidnews
 *
*/
-->
<div id="container">
<div class="container">
	<h1 class="snd-config">输入选择</h1>

    <form class="form-horizontal" action="" method="post">
		<legend>设置</legend>

		<p class="sub-legend">
			This allows switching between MPD and the Analog or S/PDIF input on certain audio devices.
			Curently only the Audiophonics ES9028/9038 DAC (S/PDIF) and HiFiBerry DAC+ ADC (Analog) are supported.
			When configuring the audio device set Volume type to Hardware or Fixed (0dB).
		</p>

		<div class="control-group">
			<label class="control-label" for="audio-input">音频源</label>
			<div class="controls">
				<select id="audio-input" class="config-select-large" name="audio_input" onchange="autoClick('#btn-set-audio-input');">
					$_select[audio_input]
				</select>
				<button id="btn-set-audio-input" class="hide btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_audio_input" value="novalue"><i class="fa fa-solid fa-sharp fa-arrow-turn-down-left"></i></button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info_audio_input" href="#notarget"><i class="fa-regular fa-sharp fa-info-circle"></i></a>
				<span id="info_audio_input" class="config-help-info">
					Select which input source provides audio.
	            </span>
			</div>

			<label class="control-label" for="resume-mpd">恢复MPD</label>
			<div class="controls">
				<select id="resume-mpd" class="config-select-large" name="resume_mpd" onchange="autoClick('#btn-set-resume-mpd');">
					$_select[resume_mpd]
				</select>
				<button id="btn-set-resume-mpd" class="hide btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_resume_mpd" value="novalue"><i class="fa fa-solid fa-sharp fa-arrow-turn-down-left"></i></button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info_resume_mpd" href="#notarget"><i class="fa-regular fa-sharp fa-info-circle"></i></a>
				<span id="info_resume_mpd" class="config-help-info">
					Resume MPD playback after changing input source to Local (MPD).
                </span>
			</div>

			<label class="control-label" for="audio-output">输出</label>
			<div class="controls">
				<select id="audio-output" class="config-select-large" name="audio_output" onchange="autoClick('#btn-set-audio-output');">
					$_select[audio_output]
				</select>
				<button id="btn-set-audio-output" class="hide btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_audio_output" value="novalue"><i class="fa fa-solid fa-sharp fa-arrow-turn-down-left"></i></button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info_audio_output" href="#notarget"><i class="fa-regular fa-sharp fa-info-circle"></i></a>
				<span id="info_audio_output" class="config-help-info">
					Select which device will receive audio from the selected input source.
	            </span>
			</div>
		</div>
	</form>
</div>
</div>
